package com.wlyuan.index.application.listener;

import com.wlyuan.core.domain.event.DomainEventListener;
import com.wlyuan.index.domain.index.event.CombineIndexUpdated;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.springframework.stereotype.Service;

/**
 * @author yuanjie
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class CombineIndexUpdatedEventListener implements DomainEventListener<CombineIndexUpdated> {
    @Subscribe(threadMode = ThreadMode.ASYNC)
    @Override
    public void handle(CombineIndexUpdated event) {
        logger.info("Combine index updated: {}", event);
    }
}
